:root {
    --main-color: #00f7ff;
    --accent-color: #8A2BE2;
    --bg-color: #000d1c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Microsoft Yahei', sans-serif;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(0, 247, 255, 0.1) 0%, transparent 60%),
    linear-gradient(45deg, #00172f, #000710);
}

.holographic-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
    rgba(0, 247, 255, 0.1) 0%,
    rgba(138, 43, 226, 0.1) 50%,
    rgba(0, 247, 255, 0.1) 100%);
    animation: hologram 6s infinite linear;
    pointer-events: none;
    mix-blend-mode: screen;
}

.grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 247, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 247, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #002d4d, #000f1a);
    box-shadow: 0 0 80px rgba(0, 247, 255, 0.3);
    border: 2px solid rgba(0, 247, 255, 0.5);
    animation: coreGlow 3s infinite;
    filter: drop-shadow(0 0 40px var(--main-color));
}

.center-core::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at 50% 50%,
    rgba(0, 247, 255, 0.2) 0%,
    transparent 60%);
    animation: energyPulse 3s infinite;
    border-radius: 50%;
    z-index: -1;
}

.core-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--main-color);
    text-align: center;
    text-shadow: 0 0 10px var(--main-color);
}

.node {
    position: absolute;
    width: 160px;
    height: 160px;
    background: rgba(4, 25, 49, 0.9);
    border: 1px solid rgba(0, 247, 255, 0.5);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.node:hover {
    transform: scale(1.2) rotate(0deg);
    box-shadow: 0 0 30px var(--main-color);
    background: rgba(8, 49, 88, 0.9);
    filter: drop-shadow(0 0 30px var(--main-color));
}

.node::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    background: linear-gradient(45deg, #00f7ff, #0066ff);
    z-index: -1;
    animation: nodeGlow 3s linear infinite;
}

.node::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(45deg,
    var(--main-color) 0%,
    var(--accent-color) 100%);
    opacity: 0.2;
    z-index: -1;
}

.quantum-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg,
    var(--main-color) 0%,
    var(--accent-color) 100%);
    transform-origin: left;
    animation: quantumFlow 3s infinite linear;
    filter: drop-shadow(0 0 5px var(--main-color));
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle,
    var(--main-color) 0%,
    transparent 70%);
    animation: particleMove linear infinite;
}

@keyframes coreGlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes nodeGlow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes hologram {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes energyPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes quantumFlow {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

@keyframes particleMove {
    from {
        transform: translateY(-100vh);
    }
    to {
        transform: translateY(100vh);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px var(--main-color);
    }
    100% {
        text-shadow: 0 0 20px var(--main-color);
    }
}

.main-header {
    /* 保持原有基本样式 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 15, 28, 0.9);
    border-bottom: 1px solid var(--main-color);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

/* 新增左侧定位样式 */
.system-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    text-shadow: 0 0 10px var(--main-color);
    position: relative;
    padding-left: 30px;
    margin-right: auto; /* 新增右侧自动间距 */
}

.system-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle,
    var(--main-color) 0%,
    transparent 70%);
    animation: coreGlow 3s infinite;
}


.header-right {
    /* 继承标题容器样式 */
    font-family: inherit;
    color: inherit;
    /* 微调字号 */
    font-size: 0.9em;
    /* 去粗体 */
    font-weight: 400;
    /* 保持原有定位 */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}


/* 悬浮窗样式 */
.suspension-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

.suspension-window:hover {
    transform: scale(1.1);
}

.suspension-icon {
    font-size: 24px;
    color: white;
}

/* 对话框样式 */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: rgba(4, 25, 49, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-container.hidden {
    display: none;
}

.chat-header {
    background: var(--main-color);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    height: 320px;
    padding: 10px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    margin-right: 10px;
}

.ai-message {
    background-color: #f1f1f1;
    margin-right: auto;
    margin-left: 10px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(0, 247, 255, 0.3);
}

#chat-input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0, 247, 255, 0.5);
    border-radius: 20px;
    background: rgba(0, 20, 40, 0.8);
    color: white;
}

.send-button {
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
}

/* 拖动相关样式 */
.draggable {
    cursor: move;
}

.dragging {
    opacity: 0.8;
}

.chat-container {
    display: none; /* 默认隐藏 */
    /* 其他样式 */
}

.chat-container.visible {
    display: block; /* 显示对话框 */
    /* 其他样式 */
}